import axios from '@/libs/request'
// 生活必需品价格
export const insert = (data) => {
  return axios.request({
    url: '/api/ac/cme2/dailyPriceService/insert',
    data: data,
    type: 'post'
  })
}
export const update = (data) => {
  return axios.request({
    url: '/api/as/cme2/dailyprice/update',
    data: data,
    type: 'post'
  })
}
export const deleteRequest = (data) => {
  return axios.request({
    url: '/api/ac/cme2/dailyPriceService/delete',
    data: data,
    type: 'post'
  })
}
export const findPageList = (pageInfo) => {
  return axios.request({
    url: '/api/as/cme2/dailyprice/findPageList',
    data: pageInfo,
    type: 'get'
  })
}
export const updateDeptCommitStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/dailyPriceService/updateDeptCommitStatus',
    data: data,
    type: 'post'
  })
}
export const updateDeptRejectStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/dailyPriceService/updateDeptRejectStatus',
    data: data,
    type: 'post'
  })
}
export const getDictInfoList = () => {
  return axios.request({
    url: 'api/as/sc/dict/getDictInfoList?type=food_type',
    data: {},
    type: 'get'
  })
}
export const findList = (data) => {
  return axios.request({
    url: '/api/as/cme2/dailyprice/findList',
    data: data,
    type: 'get'
  })
}
export const updateDeptAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/dailyPriceService/updateDeptAuditStatus',
    data: data,
    type: 'post'
  })
}
export const updateLeaderAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/dailyPriceService/updateLeaderAuditStatus',
    data: data,
    type: 'post'
  })
}
